const Sequelize = require('sequelize')
const sequelize = require('./index')

var Log = sequelize.define('log', {
  id: {
    type: Sequelize.INTEGER(32),
    primaryKey: true,
    allowNull: false,
    autoIncrement: true
  }, // log ID
  type: {
    type: Sequelize.INTEGER(5),
    allowNull: false
  },
  type_name: Sequelize.STRING(32), // 分类名
  time: Sequelize.DATE(),
  content: Sequelize.STRING(255)
},
  {
    timestamps: false,
    freezeTableName: true
  })

module.exports = Log